/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.funda.xmppserver;

/**
 *
 * @author kurinchi
 */
public class JID {

    protected String username;

    protected String servicename;

    protected String resource;

    /**
     * Get the value of resource
     *
     * @return the value of resource
     */
    public String getResource() {
        return resource;
    }

    /**
     * Set the value of resource
     *
     * @param resource new value of resource
     */
    public void setResource(String resource) {
        this.resource = resource;
    }


    /**
     * Get the value of servicename
     *
     * @return the value of servicename
     */
    public String getServicename() {
        return servicename;
    }

    /**
     * Set the value of servicename
     *
     * @param servicename new value of servicename
     */
    public void setServicename(String servicename) {
        this.servicename = servicename;
    }


    /**
     * Get the value of username
     *
     * @return the value of username
     */
    public String getUsername() {
        return username;
    }

    /**
     * Set the value of username
     *
     * @param username new value of username
     */
    public void setUsername(String username) {
        this.username = username;
    }

    @Override
    public String toString()
    {
        return username+"@"+servicename+"/"+resource;
    }


}
